<template>
  <div class="marketView">
    <NavBar />
    <Guide v-model="showGuide" />
    <div class="">
      <iframe :src="url" />
      <div class="tips">
        <span>!</span>风险提示：中亿理投师平台主播的发言权仅为个人观点，不构成任何投资建议，读者据此操作，责任自负。投资有风险，请独立判断和决策。</div>
      <p class="copyright">
        <span>©2014-2019-中亿理投师-鄂ICP备14010830-1 鄂公安网备 42010602000710号 版权所有</span>
        <span>©湖北中亿嘉讯传媒有限公司</span>
      </p>
    </div>
    <!-- <Footer /> -->
  </div>
</template>
<script>
import NavBar from '@/components/nav-bar'
import Guide from '@/components/guide'
// import Footer from '@/components/footer'
export default {
  components: {
    NavBar,
    Guide
  },
  data () {
    return {
      showGuide: true
    }
  },
  computed: {
    url () {
      let url = '//localhost:8033'
      if (/192.168.70.15/.test(window.location.href)) {
        url = '//192.168.70.15:8033'
      }
      if (/192.168.70.15/.test(window.location.href)) {
        url = '//192.168.70.15:8033'
      }
      if (/\.zhongyi9999\.com/.test(window.location.href)) {
        url = 'https://lts.zhongyi9999.com/market'
      }
      if (/\.hxkjtest\.com/.test(window.location.href)) {
        url = 'https://lts.hxkjtest.com/market'
      }
      if (this.starType === 'star') {
        return url + '/#/?starType=star'
      }
      if (this.code) {
        return url + '/#/?code=' + this.code
      } else {
        return url
      }
    },
    code () {
      return this.$route.query.code
    },
    starType () {
      return this.$route.query.starType
    }

  },
  methods: {
    closeGuide () {
      this.showGuide = false
    }
  }
}
</script>
<style lang="scss" scoped>
.marketView {
  min-height: auto;
  .copyright {
    text-align: center;
    color: #868686;
    font-size: 12px;
  }
  .tips {
    text-align: center;
    font-size: 12px;
    color: #868686;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    & > span {
      color: #fc2626;
      border: 1px solid #fc2626;
      font-weight: bold;
      margin-right: 5px;
      width: 16px;
      height: 16px;
      line-height: 14px;
      text-align: center;
      border-radius: 50%;
    }
  }
}
iframe {
  border: 0;
  width: 100%;
  height: 1900px;
  margin-top: 20px;
}
</style>

<style lang="scss">
// @import "../../style/res/liveIndex";
</style>
